package com.baidu.sggc.mapper;

import com.baidu.sggc.entity.AuditQueryLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AuditQueryLogMapper extends BaseMapper<AuditQueryLog> {


    /**
     * 查询 audit_log 中 pk 大于 lastOffset 的新数据，限制批量大小
     */
    List<AuditQueryLog> selectNewLogs(@Param("lastOffset") long lastOffset, @Param("limit") int limit);


}
